package org.wqp.simplemvc.controller;

import org.wqp.simplemvc.annotation.Controller;
import org.wqp.simplemvc.annotation.RequestMapping;
import org.wqp.simplemvc.utils.View;

/**
 * @author wuqiupeng
 * @date 2018-04-05 17:48
 * @Description
 */
@Controller
public class LoginUI {
    //使用RequestMapping注解指明forward1方法的访问路径
    @RequestMapping("LoginUI/Login2")
    public View forward1(){
        //执行完forward1方法之后返回的视图
        System.out.println("forward1");
        return new View("/login2.jsp");
    }

    //使用RequestMapping注解指明forward2方法的访问路径
    @RequestMapping("LoginUI/Login3")
    public View forward2(){
        //执行完forward2方法之后返回的视图
        return new View("/login3.jsp");
    }
}
